package com.aaa.sso.service;

import com.aaa.common.bo.Member;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Xiujie Yu
 * @Date 2021-01-22
 * @Time 8:56
 */
@FeignClient("memberService")
public interface RemoteMemberService {

    /**
     * 功能描述:根据用户名获取用户信息
     * @param userName String
     * @return com.aaa.common.util.Result
     */
    @GetMapping("/member/getMemberByUserName/{userName}")
    Result<Member> getMemberByUserName(@PathVariable("userName") String userName);
}
